package com.nimitz.maintenance.mapper;

import com.nimitz.common.core.domain.entity.SysUser;
import com.nimitz.maintenance.domain.Maintenance;
import com.nimitz.maintenance.domain.MaintenanceResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MaintenanceMapper {
    List<Maintenance> selectAll(@Param(value="kahunaId") Long kahunaId,@Param(value="state") String state);

    void addMaintenance(Maintenance maintenance);

    void updateMaintenance(Maintenance maintenance);

    Maintenance selectMaintenance(Long id);

    void deleteMaintenance(Long id);

    List<SysUser> selectByRoleId();
}
